package com.shigu.admin.common.enums;

/**
 * 页面类别
 * Created by zhaohongbo on 17/7/10.
 */
public enum PageType {

    DATACELL("表单式",1),
    USERDEFINE("自定义",0),
    OUTER("外链格式",2);


    PageType(String title, int value) {
        this.title = title;
        this.value = value;
    }

    public static PageType selByValue(int value){
        for(PageType pt: PageType.values()){
            if(pt.getValue()==value){
                return pt;
            }
        }
        return null;
    }

    private String title;

    private int value;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
